<%@ page language="java" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'ShowDate.jsp' starting page</title>
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
</head>
<body>
	<%
		Integer counter = (Integer) application.getAttribute("counter");
		if (counter == null) {
			counter = 0;
		}
		application.setAttribute("counter", ++counter);
	%>
	<font color=blue size=6>访问次数为：<%=counter%></font>
</body>
</html>
